"use strict";
{
    //声明一个对象
    let obj = {
        id: 1,
        name: '易烊千玺',
        age: 23,
        cook() {
            console.log('煮方便面...');
        }
    };
    let obj2 = {
        id: 2,
        name: '王俊凯',
        age: 24
    };
    function fn(arg) {
        arg.age;
    }
    // obj.id = 2;
}
{
    //implements 实现   了解
    class GeGe {
        constructor(name, age, car, house) {
            //添加属于自己类的属性
            this.shuai = '很帅~~';
            this.name = name;
            this.age = age;
            this.car = car;
            this.house = house;
        }
        earn() {
            console.log('能挣钱....');
        }
        program(language) {
            console.log(`我可以编写 ${language} 程序`);
        }
        //唱
        sing() {
        }
    }
    //实例化
    let syp = new GeGe('苏有朋', 39, 'xxx', '房子');
    let dingzhen = new GeGe('丁真', 36, 'xxx', 'xxx');
    syp.program('JavaScript');
    dingzhen.program('CSS');
}
{
    //声明一个对象
    let obj = {
        a: 'aaa',
        b: 'bbb',
        c: 'ccc',
        d: 'dddd'
    };
}
